package com.baidu.dtx.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ImportResource;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author shilei
 * @create 2021-04-19 23:12
 */
@MapperScan("com.baidu.dtx.order.mapper")
@EnableDiscoveryClient //@EnableEurekaClient  这两者有什么区别：springBoot 2.0版本用前面的,
//前者同用性比后者更好更适配，后者只使用于Eureka服务注册中心
@EnableFeignClients(basePackages = {"com.baidu.dtx.inventory.api","com.baidu.dtx.score.api","com.baidu.dtx.coupon.api"})
@ImportResource({"classpath:applicationContext.xml"})
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
public class DtxOrder8001 {
    public static void main(String[] args) {
        SpringApplication.run(DtxOrder8001.class, args);
    }
}
